/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.sdkj.dspservice.modules.sys.dao;

import com.sdkj.dspservice.common.base.dao.TreeDao;
import com.sdkj.dspservice.modules.sys.entity.Menu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 菜单DAO接口
 * @author tm
 * @version 2020-11-23
 */
public interface MenuDao extends TreeDao<Menu> {

	@Select("select * from sys_menu where delete_flag = '0' and parent_id = #{parentId}")
	List<Menu> findByParentId(String parentId);

	List<Menu> findByParentIdsLike(Menu menu);

	List<Menu> findByUserId(Menu menu);
	
	int updateParentIds(Menu menu);
	
	int updateSort(Menu menu);
	
}
